﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;

namespace GUI.Tabs
{
    class RecordingState
    {
        private Button Record_Button;

        public RecordingState(Button Record_Button)
        {
            this.Record_Button = Record_Button;
        }

        public void Initializing()
        {
            this.Record_Button.Dispatcher.Invoke((Action)delegate() { 
                Record_Button.Foreground = System.Windows.Media.Brushes.Red;
                Record_Button.Content = "Initializing recorder...";
            });
        }

        public void Stopping()
        {
            this.Record_Button.Dispatcher.Invoke((Action)delegate() { 
                Record_Button.Foreground = System.Windows.Media.Brushes.Black;
                Record_Button.Content = "Stopping recorder...";
            });
        }

        public void Running()
        {
            this.Record_Button.Dispatcher.Invoke((Action)delegate() { 
                Record_Button.Content = "Click to stop recording...";
            });
        }

        public void Stopped()
        {
            this.Record_Button.Dispatcher.Invoke((Action)delegate() { 
                Record_Button.Foreground = System.Windows.Media.Brushes.Black;
                Record_Button.Content = "Click to start recording.";
            });
        }

    }
}
